package com.zy.news.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zy.news.entity.NewsComment;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface NewsCommentMapper extends BaseMapper<NewsComment> {
    @Select("select * from news_comment where fk_news_id =#{newsId} ")
    List<NewsComment> findComments(int newsId);
}
